package com.zhentao.controller;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.model.common.dtos.YhjDTO;
import com.zhentao.service.IYhjService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author mp
 * @since 2024-12-17
 */
@RestController
@RequestMapping("market/api/coupon")
public class YhjController {
    @Autowired
    private IYhjService yhjService;

    @PostMapping("/")
    public ResponseResult page(YhjDTO yhjDTO){
        return yhjService.pageYhj(yhjDTO);
    }
}
